﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace MyTcpIp.displacement
{
    /// <summary>
    /// 通道位移轴心数据包
    /// </summary>
    [StructLayoutAttribute(LayoutKind.Sequential, Pack = 4)]    
    public struct CHAxisData
    {
        //  轴心波形[1024]
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)]
        public float[] Wave;
        //  轴心轨迹X[1026]            
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1026)]
        public float[] AxisOrbitX;
        //  轴心轨迹Y[1026]     
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1026)]
        public float[] AxisOrbitY;
        //  轴心位置起止X[1026]	
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1026)]
        public float[] AxisPosStartX;
        //  轴心位置起止Y[1026]     
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1026)]
        public float[] AxisPosStartY;
        //  轴心位置当前X[1026]	    
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1026)]
        public float[] AxisPosCurX;
        //  轴心位置当前Y[1026]          
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1026)]
        public float[] AxisPosCurY;						
    }
}
